﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="InterfaceManagement.aspx.cs"
    Inherits="Medianamik.UI.TypeManagement.InterfaceManagement" MasterPageFile="/Medianamik/MasterPages/MedianamikModule.Master"
    ValidateRequest="false" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:LinkButton ID="SaveButton" runat="server" CssClass="Action BtSauvegarder" OnClick="SaveButton_Click" OnClientClick="ShowOverlayOnPage();"
        Text="<%$ Resources : Medianamik_Global, SaveButtonText %>" />
    <a href="<%= ReturnUrl %>" class="Action BtAnnuler"><%=Resources("Medianamik_Global", "Cancel") %></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:ValidationSummary ID="valSummary" EnableClientScript="false" runat="server" CssClass="ValidationSummary" />
    <span class="ChampObligatoire">*</span>&nbsp;<label class="EditionPage"><%=Resources("medianamik_typemanagement","InterfaceName") %>
    <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="InterfaceName"
        ErrorMessage="<%$ Resources: medianamik_typemanagement, InterfaceNameRequired %>" Display="None" />
    <%--<asp:RegularExpressionValidator ID="InterfaceNameValidator" EnableClientScript="false" runat="server"
        ControlToValidate="InterfaceName" ErrorMessage="<%$ Resources : Medianamik_TypeManagement, InterfaceNameIsInvalid %>"
        Display="None" ValidationExpression="[A-Z][a-zA-Z]*[Interface]" />--%>
    <asp:CustomValidator ID="UniqueInterfaceNameValidator" runat="server" ErrorMessage="<%$ Resources: Medianamik_TypeManagement, InterfaceNameAlreadyExists %>"
        OnServerValidate="ValidateUniqueInterfaceName" Display="None" /></label>
    
    <p><asp:TextBox ID="InterfaceName" runat="server" CssClass="TxtBox" />&nbsp;Exemple&nbsp;:&nbsp;TestInterface</p><br />
    
    <p><med:TranslatorBox runat="server" ID="LabelTranslatorBox" Required="true" 
       ErrorMessage='<%$ Resources: medianamik_typemanagement, TranslationRequired %>' /></p><br />
       
    <label class="EditionPage"><%=Resources("medianamik_typemanagement", "Description") %></label><p>
    
    <asp:TextBox CssClass="TxtBox" runat="server" ID="InterfaceDescription" TextMode="MultiLine" /></p><br />
    
    <p><span class="ChampObligatoire">*</span>&nbsp;<%=Resources("Medianamik_Global", "RequiredField") %></p>
</asp:Content>
